<%@page import="domain.model.Domain"%>
<%@ page contentType="text/xml;charset=UTF-8" language="java"%>
<%@page import="java.util.List"%>
<?xml version="1.0" encoding="UTF-8"?>
<urlset
      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <url>
  <loc>http://www.find-domains.org/</loc>
</url>
<%
List<Domain> domainList= (List<Domain> )request.getAttribute("domainList");
for(Domain domain : domainList)
{
%>
  <url>
  <loc>http://www.find-domains.org/domain/<%=domain.getName()%></loc>
</url>

<%

}
%>

</urlset>